package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_seckill_order")
@NoArgsConstructor
@AllArgsConstructor
public class TbSeckillOrder {

    @TableId(value = "id",type = IdType.INPUT)
    private Long id;

    @TableField(value = "seckill_id")
    private Long seckillId;

    private BigDecimal money;

    private String uid;

    @TableField(value = "seller_id")
    private String sellerId;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @TableField(value = "pay_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date payTime;

    private String status;

    @TableField(value = "receiver_address")
    private String receiverAddress;

    @TableField(value = "receiver_mobile")
    private String receiverMobile;

    @TableField("receiver")
    private String receiver;

    @TableField(value = "transaction_id")
    private String transactionId;
}
